
<br>
<div class="hot_game">
	<div class="title">
	   <span>Item Exchange</span> <a href="/product">View All</a>
	   <div class="hr">&nbsp;</div>
	</div>
</div>
<?php
	if(count($hotproducts) > 0){
		?>
		<!--
		<div>
			<div style="float:left">product(s) found, displaying 1 to 20</div>
			<div style="float:right"><?//$pag_links?></div>
		</div>
		-->
		<br>
		<?php
		$column = 3;
		$count = 0;
		echo '<table width="100%">';
		foreach($hotproducts as $product){
			if($count % $column == 0) echo '<tr>';
			?>
				<td align="center">
					<?=$this->load->view('_product_item_view.php', array("product" => $product), true);?>					
				</td>
			<?
			if($count%$column==($column-1)){
			 echo '</tr>';
			}
			$count++;
		}
		$missColumn = $column - $count % $column;
		if($missColumn>0){
			for($j = 0;$j < $missColumn; $j++) echo '<td/>';
			echo '</tr>';
		}
		echo '</table>';
	}
?>
